<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Pay extends Model
{
    protected $table = 'pays';

    protected $fillable = ['id', 'contract_id', 'collect_account', 'collect_bank', 'pay_account', 'pay_bank'];

    // 此订单信息所属于的合同
    public function contracts()
    {
        return $this->belongsTo(Contract::class, 'contract_id', 'id');
    }
}
